﻿<Window x:Class="Flux_Balance_Analysis.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:graphsharp="clr-namespace:GraphSharp.Controls;assembly=GraphSharp.Controls"
        xmlns:zoom="clr-namespace:WPFExtensions.Controls;assembly=WPFExtensions"
        xmlns:local="clr-namespace:Flux_Balance_Analysis.Graphs"
        Title="Flux Balance Analysis" Width="800" Height="480" Loaded="Window_Loaded" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="25" />
            <RowDefinition Height="*" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>
        <local:Viewer x:Name="viewer" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" />
        <Menu Name="mainMenu" Grid.ColumnSpan="3">
            <MenuItem Header="Progetto" >
                <MenuItem Header="Nuovo" Name="cmdNew" Click="cmdNew_Click"/>
                <MenuItem Header="Carica" Name="cmdLoad" Click="cmdLoad_Click"/>
                <MenuItem Header="Salva" Name="cmdSave" Click="cmdSave_Click"/>
                <Separator />
                <MenuItem Header="Esci" />
            </MenuItem>
            <MenuItem Header="Aggiorna Layout" Name="cmdUpdateLayout" Click="cmdUpdateLayout_Click"/>
            <MenuItem Header="Gestore Vincoli" Name="cmdConstraintsManager" Click="cmdConstraintsManager_Click"/>
        </Menu>
        <StackPanel Grid.Row="1" >
            <TextBlock Text="Aggiungi:" />
            <Separator/>
            <Button Name="cmdAddMetabolte" Margin="3" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Click="cmdAddMetabolte_Click">
                <StackPanel>
                    <Image Source="Images\metabolita.png" Height="48" Width="48"/>
                    <TextBlock Text="Metabolita"/>
                </StackPanel>
            </Button>
            <Button Name="cmdAddReaction" Margin="3" Background="Transparent" BorderBrush="Transparent" BorderThickness="0" Click="cmdAddReaction_Click">
                <StackPanel>
                    <Image Source="Images\reazione.png" Height="48" Width="48"/>
                    <TextBlock Text="Reazione"/>
                </StackPanel>
            </Button>
        </StackPanel>
        <TextBlock Grid.Row="2" Text="Obiettivo:" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="3"/>
        <TextBox Name="txtObjective" Grid.Column="1" Grid.Row="2" TextChanged="txtObjective_TextChanged" />
        <Button Name="cmdSolve" Content="Calcola" Grid.Column="2" Grid.Row="3" Click="cmdSolve_Click" />
    </Grid>
</Window>
